#include "pch.h"
#include "../Base.h"

USHORT MyGetVersion() {
	USHORT osBuildNumber;
#ifndef _WIN64
	DWORD peb = __readfsdword(0x30);
	osBuildNumber = *(PUSHORT)(peb + 0xac);
#else

	ULONG64 peb = __readgsqword(0x60);
	osBuildNumber = *(PUSHORT)(peb + 0x120);
#endif 
	return osBuildNumber;
}